

INSERT INTO  TRASPARENZA

SELECT 'T32',BOLLETTA,'','TOTALE ONERI DIVERSI','','','','','','','',SUM(TOTALE),'',null FROM TRASPARENZA 
WHERE RIGA IN ('T30','T31')

GROUP BY BOLLETTA

